import { defineFakeRoute } from 'vite-plugin-fake-server/client';
import { get, post } from '../BaseMock';

const noticeListReturn = (req) => {
  return {
    total: 2,
    rows: [
      {
        createBy: 'admin',
        createTime: '2024-06-30 11:28:39',
        updateBy: '',
        updateTime: null,
        remark: '管理员',
        noticeId: 1,
        noticeTitle: '温馨提醒：2018-07-01 若依新版本发布啦',
        noticeType: '2',
        noticeContent: '新版本内容',
        status: '0'
      },
      {
        createBy: 'admin',
        createTime: '2024-06-30 11:28:40',
        updateBy: '',
        updateTime: null,
        remark: '管理员',
        noticeId: 2,
        noticeTitle: '维护通知：2018-07-01 若依系统凌晨维护',
        noticeType: '1',
        noticeContent: '维护内容',
        status: '0'
      }
    ],
    code: 200,
    msg: '查询成功'
  };
};
export default defineFakeRoute([get('/system/notice/list', noticeListReturn)]);
